<footer>
    footer
</footer>
<script>
<?php if ( !empty( $config['locale'] ) ) {
    $tr = json_encode($translate[$config['locale']]['default']);
    echo "
    soc = {};
    soc.locale = '{$config['locale']}';
    soc.translate = {};
    soc.translate[soc.locale] = {};
    soc.translate[soc.locale]['default'] = {$tr};
    ";
} ?>
</script>
<script src="/js/jquery-3.5.1.min.js"></script>
<?php if ( $soc['url']['path'] === '/' || $soc['url']['path'] === $config['login_url'] ) {

    // Front Page or Login
    echo "<script src='/js/jquery.cookie.js'></script>";
    echo "<script src='/js/front.js'></script>";

} elseif ( preg_match( '/^\/edit\//', $soc['url']['path'] ) ) {
    
    // Edit Page
    echo "<script src='/js/jquery.cookie.js'></script>";
    echo "<script src='/js/edit.js'></script>";

} elseif ( $soc['url']['path'] === '/config/' ) {
    
    // Config Page
    echo "<script src='/js/jquery.form.min.js'></script>";
    echo "<script src='/js/config.js'></script>";

}
?>